/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package spaceinvaders;

import java.awt.Point;

/**
 *
 * @author jorge
 */
public class Disparo extends Figura
{
    private String formaA = "0000000000000000010000100";
    private String formaB = "0000000000000000000000000";
    private int forma = 0;

    public Disparo(Point coordenada)
    {
        super(coordenada, 5, 5);
        super.darForma(this.formaA);

    }

    @Override
    public void cambiarForma()
    {
        if(this.forma == 0)
        {
            super.darForma(this.formaB);
            this.forma = 1;
        }
        else
        {
            super.darForma(this.formaA);
            this.forma = 0;
        }
    }
}
